package edu.rit.hvz.android;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class Preferences extends Activity implements OnClickListener {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Utils.onActivityCreateSetTheme(this);
		setContentView(R.layout.preferences_layout);

		findViewById(R.id.button1).setOnClickListener(this);
		findViewById(R.id.button2).setOnClickListener(this);
		findViewById(R.id.button3).setOnClickListener(this);
	}

	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {

		case R.id.button1:
			Utils.changeToTheme(R.style.HVZTheme);
			break;
		case R.id.button2:
			Utils.changeToTheme(R.style.HVZLarge);
			break;
		case R.id.button3:
			Utils.changeToTheme(R.style.SmallTheme);
			break;
		}
		finish();
	}
}
